<extend name="Public/base" />

<block name="wrapper">
	<div class="row">
		<div class="col-lg-12">
			<div class="panel panel-default">
				<div class="panel-heading"><h3>车辆信息管理</h3></div>
				<!-- /.panel-heading -->
				<div class="panel-body">
					<div class="dataTable_wrapper">
						<table class="table table-striped table-bordered table-hover" id="dataTables-example">
							
							<thead>
								<tr>
									<th>id</th>				
									<th>品牌</th>
									<th>上牌时间</th>
									<th>行程</th>
									<th>车主报价</th>
									<th>新车价格</th>
									<th>降价金额</th>
									<th>状态</th>
									<th>排量</th>
									<th>排放标准</th>
									<th>上架时间</th>
									<th>上牌城市</th>
									<th>所在城市</th>
									<th>型号</th>
									<th>舒适度</th>
									<th>操作</th>
								</tr>
							</thead>
							
							<tbody>

								<foreach name="result" item="vo">
									<tr>
										<td>{$vo['id']}</td>		
										<td>{$vo['pai']}{$vo['xi']}</td>
										<td>{$vo['ontime']}</td>
										<td>{$vo['mile']}</td>
										<td>{$vo['price']}</td>
										<td>{$vo['nprice']}</td>
										<td>{$vo['sale']}</td>
										<td>{$vo['status']}</td>
										<td>{$vo['gas']}</td>
										<td>{$vo['standard']}</td>
										<td>{$vo['uptime']}</td>
										<td>{$vo['city']}</td>
										<td>{$vo['oncity']}</td>
										<td>{$vo['series']}</td>
										<td>{$vo['comfort']}</td>
										<td>

									    <a href="{:U('Info/add')}">添加</a>
										|
										<a href="{:U('Info/find',['id'=>$vo['id']])}">修改</a>
						   				|

										<a href="{:U('Info/destroy',['id'=>$vo['id']])}">禁用</a> |
										<a href="{:U('Info/demo', ['id'=>$vo['id']])}">启用</a>
										
									</td>
								</tr>

							</foreach>
								  <tr class="gradeA">
                                    <td colspan="16" align="center"> {$show} </td>

                                </tr>
							</tbody>
						</table>
					</div>
					<!-- /.table-responsive -->
				</div>
				<!-- /.panel-body -->
			</div>
			<!-- /.panel -->
		</div>
		<!-- /.col-lg-12 -->
	</div>

</block>